<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false" %>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <title>Decks</title>
  <%@ include file="/WEB-INF/jsp/headers.jsp" %>
  </head>
<body>

  <%@ include file="/WEB-INF/jsp/heading.jsp" %>
  
  <div class="content">
  <%@ include file="/WEB-INF/jsp/sidebar.jsp" %>
  
    <div class="main">  
      <h1>Show Deck</h1>
		  <p>
		    <label for="id">ID:</label> <a href="#" id="id_help_link" title="what's this?" >?</a><br />
		    <c:out value="${deck.id}"/>
		  </p>
		  <%@ include file="/WEB-INF/jsp/id_help.jsp" %>
		  <p>
		    <label for="title">Title:</label> <a href="#" id="title_help_link" title="what's this?" >?</a><br />
		    <c:out value="${deck.title}"/>
		  </p>
		  <%@ include file="/WEB-INF/jsp/title_help.jsp" %>
		  <p>
		    <label for="data">Data:</label> <a href="#" id="data_help_link" title="what's this?" >?</a><br />
		    <c:out value="${deck.jsonData}"/>
		  </p>
		  <%@ include file="/WEB-INF/jsp/data_help.jsp" %>
		  <p>
        <a href="/app/gadget/${deck.id}">Gadget XML</a>
      </p>
		  <c:if test="${!deck.readonly}" >
		    <p><a href="/app/decks/${deck.id}/edit">Edit Deck</a> | <a href="<c:url value="/decks" context="/app"/>">Back To Main</a></p>
		  </c:if>
		  <c:if test="${deck.readonly}" >
		    <p>This deck is read only.</p>
		    <p><a href="<c:url value="/decks" context="/app"/>">Back To Main</a></p>
		  </c:if>
    </div>
  </div>
  <%@ include file="/WEB-INF/jsp/footer.jsp" %>
</body>
</html>